.container {
  height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.navBar {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
}

/* 自定义滚动条样式 */
.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.cardInfo {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cardNumber {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 16px 0;
  color: #333;
}

.balanceInfo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.balanceRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balanceLabel {
  font-size: 16px;
  color: #666;
}

.balanceAmount {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.syncStatus {
  text-align: center;
  margin-top: 12px;
  padding: 8px;
  border-radius: 6px;
  background: #f8f9fa;
}

.synced {
  color: #28a745;
  font-size: 14px;
}

.notSynced {
  color: #ffc107;
  font-size: 14px;
}

.amountSection {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sectionTitle {
  font-size: 16px;
  margin: 0 0 16px 0;
  color: #666;
  font-weight: 600;
}

.amountGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.amountButton {
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #f8f8f8;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.amountButton:hover {
  border-color: #ff6600;
  background: #fff5f0;
}

.amountButton.selected {
  background: #ff6600;
  color: white;
  border-color: #ff6600;
  transform: scale(1.02);
}

.paymentSection {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.paymentMethod {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #f8f9fa;
}

.paymentIcon {
  font-size: 24px;
}

.paymentText {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.notice {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notice h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.notice ul {
  margin: 0;
  padding-left: 20px;
}

.notice li {
  margin: 8px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.rechargeButton {
  background: #ff6600 !important;
  border-radius: 8px !important;
  height: 48px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.rechargeButton:hover {
  background: #e55a00 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 102, 0, 0.4);
}

.loading {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: #666;
}

.errorMessage {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.errorMessage p {
  margin: 0 0 20px 0;
  font-size: 16px;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .content {
    padding: 16px;
  }
  
  .cardInfo,
  .amountSection,
  .paymentSection,
  .notice {
    padding: 16px;
  }
  
  .amountGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .amountButton {
    padding: 14px;
    font-size: 15px;
  }
}

/* 确保在小屏幕上也有足够的滚动空间 */
@media (max-height: 600px) {
  .content {
    padding-bottom: 80px;
  }
}